:root {
    --primary: #047857;
    --primary-dark: #065f46;
    --secondary: #d97706;
    --dark: #1f2937;
    --light: #f3f4f6;
    --white: #ffffff;
    --gray: #9ca3af;
    --text: #374151;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
}

img, svg {
    max-width: 100%;
}

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

.text-white { color: var(--white); }
.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--light); }

/* Header */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
}
nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Ad Container */
.ad-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 120px;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px dashed #d1d5db;
}

/* Tool Section */
.tool-section {
    margin: 3rem auto;
}
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tool-form-card, .tool-results-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

.tool-form-card h2, .tool-results-card h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group small {
    display: block;
    color: var(--gray);
    margin-top: 0.25rem;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover {
    background: var(--primary-dark);
}

.hidden { display: none !important; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}
.empty-state svg {
    margin-bottom: 1rem;
}

.result-stat {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.result-stat h3 {
    font-size: 1rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.large-stat {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}
.effort-desc {
    font-weight: 500;
    color: var(--secondary);
    margin-top: 0.25rem;
}
.result-breakdown h4 {
    margin-bottom: 0.5rem;
}
.result-breakdown ul {
    list-style: none;
}
.result-breakdown li {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
}
.info-section h2, .tips-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--dark);
}
.info-section > .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Tips Section */
.tips-section {
    padding: 4rem 1.5rem;
}
.tips-section > p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}
.tips-section ul {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 1.5rem;
}
.tips-section li {
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 2rem;
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
@media (min-width: 768px) {
    .site-footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}
.footer-links a {
    color: var(--gray);
    text-decoration: none;
    margin-left: 1rem;
}
.footer-links a:hover {
    color: var(--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;
}
