:root {
    --bg: #f5f7f9;
    --text: #1a202c;
    --blue-dark: #2c3e50;
    --blue-light: #3498db;
    --orange: #e67e22;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

.site-header {
    background: var(--blue-dark);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.site-header nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: 0.2s;
}

.site-header nav a:hover {
    opacity: 1;
}

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

.hero h1 {
    font-size: 2.5rem;
    color: var(--blue-dark);
    margin-bottom: 1rem;
}

.hero .lead {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.worksheet-tool {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    border-top: 4px solid var(--orange);
}

.worksheet-tool h2 {
    margin-bottom: 0.5rem;
    color: var(--blue-dark);
}

.worksheet-tool > p {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

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

.card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--blue-dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

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

input[type="text"]:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.mt-4 {
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.comparison-table th, .comparison-table td {
    text-align: left;
    padding: 0.5rem;
}

.comparison-table th {
    font-size: 0.85rem;
    color: #4a5568;
    text-transform: uppercase;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-danger {
    background: transparent;
    color: #e53e3e;
    border: 1px solid #e53e3e;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-danger:hover {
    background: #e53e3e;
    color: white;
}

.guide-section {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 4rem;
}

.guide-section h2 {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
}

.guide-section h3 {
    font-size: 1.25rem;
    color: var(--blue-light);
    margin: 2rem 0 1rem;
}

.guide-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #2d3748;
}

.legal-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.site-footer {
    background: var(--blue-dark);
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer nav { margin-top: 1rem; }
.site-footer a { color: #a0aec0; margin: 0 0.5rem; text-decoration: none; }

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .hero h1 { font-size: 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;
}

.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;
}
