:root {
  --primary: #0f766e;
  --primary-hover: #115e59;
  --bg-color: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 8px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

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

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

.main-nav a, .footer-nav a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.main-nav a:hover, .footer-nav a:hover {
  color: var(--primary);
}

.hero-section {
  text-align: center;
  padding: 4rem 0 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.tool-section {
  margin: 2rem 0 4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card h2 {
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.calc-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.calc-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  width: 100%;
}

.calc-form input[type="date"] {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  flex: 1;
  min-width: 200px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.results-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hidden {
  display: none;
}

.milestone-list {
  list-style: none;
  margin-top: 1rem;
}

.milestone-list li {
  background: #f1f5f9;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milestone-age {
  font-weight: 700;
  color: var(--primary);
}

.milestone-desc {
  font-weight: 500;
  flex: 1;
  margin: 0 1rem;
}

.milestone-date {
  font-family: monospace;
  font-size: 1.1rem;
  color: #334155;
}

.content-section {
  margin: 3rem 0;
}

.content-section h2 {
  margin-bottom: 1rem;
  color: #0f172a;
  font-size: 1.8rem;
}

.content-section p {
  margin-bottom: 1.2rem;
}

.bg-light {
  background-color: #e2e8f0;
  padding: 2rem;
  border-radius: var(--radius);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-box h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.2rem;
}

.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0;
  text-align: center;
}

.footer-nav {
  margin: 1.5rem 0;
}

.footer-nav a {
  color: #94a3b8;
}

.footer-nav a:hover {
  color: var(--white);
}

.disclaimer {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .milestone-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .milestone-desc {
    margin: 0;
  }
}



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