/* ===== 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, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #0f766e; text-decoration: none; transition: color 0.2s; }
a:hover { color: #115e59; text-decoration: underline; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #0f172a;
    text-decoration: none;
}
.logo svg { stroke: #0f766e; flex-shrink: 0; }
.main-nav ul {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: #475569;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}
.main-nav a.active,
.main-nav a:hover {
    color: #0f766e;
    border-bottom-color: #0f766e;
    text-decoration: none;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #ccfbf1 0%, #e6f7f5 100%);
    padding: 3rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid #ccfbf1;
}
.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #334155;
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

/* ===== CHECKLIST BUILDER ===== */
.checklist-builder {
    padding: 2.5rem 0;
}
.selector-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.selector-card label {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
}
.selector-card select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
.selector-card select:focus {
    outline: none;
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.checklist-output {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.placeholder-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #64748b;
    padding: 2rem 0;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.checklist-header h3 {
    font-size: 1.4rem;
    color: #0f172a;
}
.btn-print {
    background-color: #0f766e;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}
.btn-print:hover { background-color: #115e59; }

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: background 0.2s;
}
.checklist-item input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #0f766e;
    flex-shrink: 0;
}
.checklist-item label {
    font-weight: 500;
    color: #334155;
    cursor: pointer;
}
.checklist-item .note {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* ===== INFO SECTION ===== */
.info-section {
    padding: 3rem 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.info-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    text-align: center;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}
.info-card svg { margin: 0 auto 1rem; }
.info-card h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.info-card p {
    color: #475569;
    font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 3rem 0;
}
.faq-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    background: #f8fafc;
    transition: background 0.2s;
}
.faq-item summary:hover { background: #f1f5f9; }
.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    color: #0f766e;
    font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
    padding: 1rem 1.25rem;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    margin-top: auto;
}
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer p {
    color: #64748b;
    font-size: 0.9rem;
}
.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { font-size: 0.9rem; color: #475569; }
.footer-nav a:hover { color: #0f766e; }

/* ===== UTILITY ===== */
@media print {
    .site-header, .site-footer, .hero, .info-section, .faq-section, .selector-card, .btn-print, .main-nav, .footer-nav {
        display: none !important;
    }
    .checklist-output {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .checklist-item {
        break-inside: avoid;
    }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-subtitle { font-size: 1rem; }
    .site-header .container { flex-direction: column; align-items: flex-start; }
    .main-nav ul { gap: 0.75rem; }
    .checklist-header { flex-direction: column; align-items: flex-start; }
    .info-grid { grid-template-columns: 1fr; }
    .site-footer .container { flex-direction: column; text-align: center; }
}



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