:root {
  --primary: #155e75;
  --primary-hover: #164e63;
  --background: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #0ea5e9;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
}

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

.site-header {
  background-color: var(--primary);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.site-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.site-header p {
  color: #cffafe;
  font-size: 1rem;
}

.planner-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .planner-section {
    grid-template-columns: 1fr 1fr;
  }
}

.calculator-panel, .templates-panel {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.sub-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.half {
  flex: 1;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

input[type="number"], input[type="date"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

small {
  display: block;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.results-box {
  background: #f1f5f9;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1.5rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.result-item.total {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: bold;
  color: var(--primary);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.email-preview {
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  min-height: 200px;
  white-space: pre-wrap;
  margin-bottom: 1rem;
}

.copy-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}

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

.content-section {
  margin-bottom: 3rem;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.content-section h2, .content-section h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

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

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
}

.site-footer {
  background: #0f172a;
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.site-footer a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 0.5rem;
}

.site-footer a:hover {
  color: white;
}



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