/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #FDF6F0;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

/* Typography */
h1, h2, h3 { color: #2D2D2D; font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }
a { color: #D2691E; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2D2D2D;
  text-decoration: none;
}
.logo svg { flex-shrink: 0; }

/* Hero Section */
.hero {
  padding: 3rem 0;
  text-align: center;
}
.subtitle {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Calculator Card */
.calculator-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.calculator-card h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}
.input-group {
  margin-bottom: 1.25rem;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #444;
}
input[type="number"], select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-size: 1rem;
  background: #FAFAFA;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  outline: none;
  border-color: #F28B82;
  box-shadow: 0 0 0 3px rgba(242,139,130,0.2);
}
.btn-primary {
  width: 100%;
  padding: 0.875rem;
  background: #F28B82;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #E07B72; }
.btn-primary:active { transform: scale(0.98); }
.result {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #FDF6F0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2D2D2D;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Info Section */
.info {
  padding: 3rem 0;
  background: #FFFFFF;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.info-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: #FDF6F0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.info-card svg { margin-bottom: 1rem; }

/* How It Works */
.how-it-works {
  padding: 3rem 0;
  background: #FDF6F0;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 2rem auto 0;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: #F28B82;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Tips */
.tips {
  padding: 3rem 0;
  background: #FFFFFF;
}
.tips-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.tips-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #EEE;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tips-list li::before {
  content: "🐾";
  font-size: 1.25rem;
}

/* Footer */
footer {
  background: #2D2D2D;
  color: #CCC;
  padding: 2rem 0;
  text-align: center;
}
footer a { color: #F28B82; }
footer nav { margin-top: 0.5rem; display: flex; gap: 1.5rem; justify-content: center; }

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .calculator-card { padding: 1.5rem; }
  .step { flex-direction: column; align-items: center; text-align: center; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }



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

.site-utility-links {
  width: min(900px, calc(100% - 32px));
  margin: 32px auto;
  padding-top: 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
  font-size: 0.9rem;
}

.site-utility-links a {
  color: inherit;
  opacity: 0.75;
}
