* {box-sizing: border-box;margin:0;padding:0;}
body {font-family:system-ui,Arial,sans-serif;line-height:1.6;color:#333;background:#fff;min-height:100vh;display:flex;flex-direction:column;}
.container {max-width:1200px;margin:0 auto;padding:1rem;}
header {background:linear-gradient(135deg,#6a5acd,#8a2be2);color:#fff;padding:1.5rem 0;}
header h1 {font-size:2rem;margin-bottom:0.5rem;}
header .tagline {font-size:1rem;opacity:0.95;}
nav {display:flex;gap:1.5rem;margin-top:1rem;}
nav a {color:#fff;text-decoration:none;opacity:0.9;}
nav a:hover {opacity:1;text-decoration:underline;}
main {flex:1;padding:2rem 0;}
h2 {font-size:1.5rem;margin-bottom:1rem;color:#2d2d2d;}
h3 {font-size:1.25rem;margin:1.5rem 0 1rem;color:#444;}
.calculator-section,.results-section,.examples-section,.tips-section {padding:0 1rem;}
.form-container {background:#f8f9fa;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;}
.input-group {display:flex;flex-direction:column;gap:0.5rem;margin-bottom:1rem;}
.input-group label {font-weight:600;font-size:0.9rem;color:#555;}
.input-group input {padding:0.75rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;}
.input-group input:focus {outline:none;border-color:#6a5acd;background:#fff;}
.help-text {font-size:0.8rem;color:#666;font-style:italic;}
.presets-section {background:#fff;border-radius:12px;padding:1.5rem;margin-top:1rem;}
.preset-buttons {display:flex;flex-wrap:wrap;gap:0.75rem;}
.preset-btn {background:#e8f0fe;border:1px solid #6a5acd;color:#2d2d2d;padding:0.75rem 1rem;border-radius:8px;cursor:pointer;font-size:0.9rem;}
.preset-btn:hover {background:#6a5acd;color:#fff;}
.results-card {background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:1rem;}
.result-row {display:flex;justify-content:space-between;align-items:center;padding:0.75rem 0;border-bottom:1px solid #eee;}
.result-row.total-row {font-size:1.25rem;font-weight:600;border-top:2px solid #333;}
.result-row .label {color:#666;}
.result-row .value {color:#2d2d2d;font-weight:500;}
.action-buttons {display:flex;gap:0.75rem;margin-top:1rem;}
.action-buttons button {background:#6a5acd;color:#fff;border:none;padding:0.75rem 1.5rem;border-radius:8px;cursor:pointer;font-weight:500;}
.action-buttons button:hover {background:#5a4abf;}
.example-card {background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:1rem;}
.example-card h3 {font-size:1rem;margin-bottom:0.5rem;color:#2d2d2d;}
.example-list {list-style:none;padding-left:1rem;margin:0.5rem 0;}
.example-list li {margin:0.25rem 0;color:#555;}
.example-note {font-size:0.85rem;color:#666;font-style:italic;margin-top:0.5rem;}
.tips-grid {display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));}
.tip-card {background:#f8f9fa;border-radius:8px;padding:1rem;}
.tip-card h4 {font-size:1rem;margin-bottom:0.5rem;color:#2d2d2d;}
.assumptions-note {background:#fff3cd;border:1px solid #ffeaa7;border-radius:8px;padding:1rem;margin-top:1.5rem;}
@media (max-width:768px) {
header h1 {font-size:1.5rem;}
nav {gap:0.75rem;font-size:0.9rem;}
.form-container,.results-card {padding:1rem;}
.preset-btn {font-size:0.85rem;padding:0.5rem 0.75rem;}
.example-card {padding:0.75rem;}
}


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