* {box-sizing: border-box;margin:0;padding:0;}
html {font-size: 16px;line-height: 1.5;}
body {
font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
color: #1a1a1a;background: #fdfdfd;
min-height: 100vh;
build:16px;
}
a {color: #2563eb;text-decoration: none;}
a:hover {text-decoration: underline;}
.site-header {
background: linear-gradient(135deg,#7c3aed 0%,#5b21b6 100%);
color: white;
padding: 1rem 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-container {display: flex;align-items: center;justify-content: space-between;max-width: 1200px;margin: 0 auto;}
.nav-logo {font-weight: 700;font-size: 1.25rem;color: white;}
.nav-links {list-style: none;display: flex;gap: 1.5rem;}
.nav-links a {color: rgba(255,255,255,0.9);font-size: 0.9rem;}
.nav-links a:hover {color: white;}
.main-content {max-width: 1200px;margin: 0 auto;padding: 2rem 1rem;}
.hero-section {margin-bottom: 3rem;}
.hero-section h1 {font-size: 2.25rem;color: #1a1a1a;margin-bottom: 1rem;line-height: 1.2;}
.hero-section p {font-size: 1.1rem;color: #525252;margin-bottom: 2rem;}
.preset-selector {margin: 2rem 0;}
.preset-selector fieldset {border: 1px solid #e5e5e5;border-radius: 8px;padding: 1.5rem;background: white;}
.preset-selector legend {font-weight: 600;color: #7c3aed;margin-bottom: 1rem;font-size: 1rem;}
.preset-options {display: flex;flex-wrap: wrap;gap: 1rem;}
.preset-card {border: 2px solid #e5e5e5;border-radius: 8px;padding: 1rem;cursor: pointer;background: white;transition: all 0.2s;}
.preset-card input {display: none;}
.preset-card:hover {border-color: #3b82f6;box-shadow: 0 2px 8px rgba(59,130,246,0.1);}
.preset-card input:checked + .preset-name {color: #2563eb;font-weight: 600;}
.preset-card.custom {border-style: dashed;}
.custom-entry {margin-top: 1.5rem;padding: 1.5rem;background: #f9fafb;border-radius: 8px;}
.custom-entry label {display: block;font-size: 0.875rem;color: #525252;margin-bottom: 0.25rem;font-weight: 500;}
.custom-entry input, .custom-entry select {width: 100%;padding: 0.5rem;border: 1px solid #d1d5db;border-radius: 4px;margin-bottom: 1rem;font-size: 1rem;}
.input-section {display: flex;flex-wrap: wrap;gap: 2rem;align-items: center;margin: 2rem 0;}
.input-group {flex: 1;min-width: 200px;}
.input-group label {display: block;font-size: 0.875rem;color: #525252;margin-bottom: 0.5rem;font-weight: 500;}
.input-group input[type="range"] {width: 100%;}
.value-display {font-size: 1.25rem;font-weight: 600;color: #7c3aed;margin-top: 0.5rem;}
.calculate-button {
background: linear-gradient(135deg,#7c3aed 0%,#5b21b6 100%);
color: white;border: none;padding: 1rem 2rem;font-size: 1rem;font-weight: 600;
border-radius: 8px;cursor: pointer;transition: opacity 0.2s;
}
.calculate-button:hover {opacity: 0.9;}
.results-section {background: linear-gradient(135deg,#7c3aed 0%,#5b21b6 100%);color: white;padding: 2rem;border-radius: 12px;margin: 2rem 0;}
.impact-score {display: flex;align-items: baseline;gap: 0.5rem;margin-bottom: 1.5rem;}
.score-value {font-size: 3.5rem;font-weight: 700;}
.score-label {font-size: 1rem;font-weight: 400;opacity: 0.9;}
.impact-breakdown {display: flex;gap: 2rem;margin-bottom: 1.5rem;}
.breakdown-item {text-align: center;}
.breakdown-label {font-size: 0.875rem;opacity: 0.9;margin-bottom: 0.25rem;}
.breakdown-value {font-size: 1.5rem;font-weight: 600;}
.results-actions {display: flex;gap: 1rem;}
.action-button {
background: rgba(255,255,255,0.2);color: white;border: 1px solid rgba(255,255,255,0.3);
padding: 0.75rem 1.5rem;border-radius: 6px;cursor: pointer;
transparent;transition: background 0.2s;
}
.action-button:hover {background: rgba(255,255,255,0.3);}
.chart-container h3 {font-size: 1.25rem;margin-bottom: 1rem;}
.chart-areas {display: flex;gap: 2rem;align-items: flex-end;height: 150px;}
.chart-area {flex: 1;text-align: center;}
.chart-area span {font-size: 0.875rem;margin-bottom: 0.5rem;display: block;}
.chart-bar {width: 40px;border-radius: 4px 4px 0 0;}
.baseline-bar {background: #94a3b8;height: 40px;}
.peak-bar {background: #22c55e;height: 80px;}
.decline-bar {background: #f59e0b;height: 60px;}
.methodology-section, .case-studies-section, .tips-section, .about-section {margin: 3rem 0;padding: 1.5rem;background: #f9fafb;border-radius: 8px;}
.methodology-section h2, .case-studies-section h2, .tips-section h2, .about-section h2 {color: #7c3aed;margin-bottom: 1rem;font-size: 1.5rem;}
.methodology-section ol, .tips-section ul {margin-left: 1.5rem;margin-bottom: 1rem;}
.case-grid {display: grid;gap: 1.5rem;grid-template-columns: repeat(auto-fit,minmax(280px,1fr));}
.case-card {background: white;padding: 1.5rem;border-radius: 8px;border-left: 4px solid #7c3aed;}
.case-card h3 {color: #5b21b6;margin-bottom: 0.75rem;font-size: 1.1rem;}
.case-card p {font-size: 0.95rem;line-height: 1.5;}
.site-footer {text-align: center;padding: 1.5rem;background: #1f2937;color: #9ca3af;font-size: 0.875rem;margin-top: 3rem;}
.site-footer a {color: #6b7280;}
@media (max-width: 768px) {
.nav-links {gap: 1rem;font-size: 0.8rem;}
.input-section {flex-direction: column;}
.results-section {padding: 1.5rem;}
.score-value {font-size: 2.75rem;}
.chart-areas {height: 120px;}
}
@media (max-width: 480px) {
.hero-section h1 {font-size: 1.75rem;}
.preset-options {flex-direction: column;}
.impact-breakdown {gap: 1rem;}
.breakdown-value {font-size: 1.25rem;}
.results-actions {flex-direction: column;}
}
.hidden {display: none;}


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