/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; line-height: 1.6; scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a2e; background: #f8f9fa; }

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

/* Header */
.site-header { background: #1a1a2e; color: #fff; padding: 2rem 0; }
.site-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.site-tagline { font-size: 1.125rem; color: #a0a0b0; margin-bottom: 1.5rem; }
.site-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-nav a { color: #a0a0b0; text-decoration: none; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }

/* Main Sections */
main { padding: 2rem 0 4rem; }
section { margin-bottom: 3rem; }
h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: #1a1a2e; }

/* Calculator Section */
.calculator-section { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.campaign-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 600; color: #333; }
.form-group input[type="number"],
.form-group input[type="text"] { padding: 0.75rem; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: #4a6cf7; }
.form-group input[type="range"] { width: 100%; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 1rem; margin-top: 1rem; }

/* Buttons */
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: #4a6cf7; color: #fff; }
.btn-primary:hover { background: #3a5ce5; }
.btn-secondary { background: #e0e0e0; color: #333; }
.btn-secondary:hover { background: #d0d0d0; }
.btn-outline { background: transparent; color: #4a6cf7; border: 2px solid #4a6cf7; }
.btn-outline:hover { background: #4a6cf7; color: #fff; }

/* Results Section */
.results-section { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.result-card { background: #f8f9fa; border-radius: 8px; padding: 1.5rem; text-align: center; border: 2px solid #e0e0e0; }
.result-label { display: block; font-size: 0.875rem; color: #666; margin-bottom: 0.5rem; }
.result-value { display: block; font-size: 2rem; font-weight: 700; color: #4a6cf7; }
.result-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

/* Presets Section */
.presets-section { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.presets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.preset-btn { padding: 1rem; border: 2px solid #e0e0e0; border-radius: 8px; background: #f8f9fa; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.preset-btn:hover { border-color: #4a6cf7; background: #eef1ff; }

/* Tips Section */
.tips-section { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.tip-card { background: #f8f9fa; border-radius: 8px; padding: 1.5rem; border-left: 4px solid #4a6cf7; }
.tip-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.tip-card p { color: #555; }

/* FAQ Section */
.faq-section { background: #fff; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.faq-item { border-bottom: 1px solid #e0e0e0; padding: 1rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary { font-weight: 600; cursor: pointer; color: #333; }
.faq-item p { margin-top: 0.75rem; color: #555; }

/* Footer */
.site-footer { background: #1a1a2e; color: #a0a0b0; padding: 2rem 0; text-align: center; }
.site-footer a { color: #4a6cf7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .site-title { font-size: 1.5rem; }
  .campaign-form { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .form-actions { flex-direction: column; }
  .result-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .presets-grid { grid-template-columns: 1fr; }
}

/* Print Styles */
@media print {
  .site-header, .site-footer, .form-actions, .result-actions, .presets-section { display: none; }
  body { background: #fff; color: #000; }
  .calculator-section, .results-section, .tips-section, .faq-section { box-shadow: none; border: 1px solid #ccc; margin-bottom: 1rem; }
}



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