:root {
    --primary: #2C5F2D;
    --secondary: #97BC62;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-page: #FDFDFD;
    --bg-surface: #FFFFFF;
    --bg-alt: #F4F7F4;
    --border: #E0EACF;
    --border-radius: 8px;
    --font-heading: system-ui, -apple-system, sans-serif;
    --font-body: system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
}

.bg-light {
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
}

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

.hero p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    color: var(--text-muted);
}

.ad-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 120px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #999;
    font-size: 0.85rem;
}

.generator-section {
    margin: 3rem auto;
}

.generator-section p.subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

select, input[type="text"], textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-page);
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    height: 250px;
    resize: vertical;
    margin-bottom: 1rem;
}

.output-area label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #1e421f;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #7d9e51;
}

.status-msg {
    margin-left: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.hidden {
    display: none;
}

.tips-section {
    margin: 3rem auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tip-card h3 {
    font-size: 1.1rem;
}

.tip-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.default-page {
    padding: 3rem 0;
    flex: 1;
}

.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer nav {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }
    
    .site-header .container, .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}



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