/* HarnessFit Check - Main Stylesheet */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius: 8px;
}

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

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

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

/* Header */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    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(--color-primary);
    text-decoration: none;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
}

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

/* Hero */
.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

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

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Checklist Section */
.checklist-section {
    padding: 2rem 0;
}

.progress-bar {
    background: var(--color-border);
    border-radius: 999px;
    height: 8px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: var(--color-primary);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.checklist-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checklist-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--color-surface);
}

.checklist-group legend {
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0 0.5rem;
}

.check-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.check-item:last-child {
    border-bottom: none;
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
}

.check-text {
    flex: 1;
}

.check-tip {
    margin-top: 0.5rem;
    margin-left: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: var(--radius);
}

.check-item.checked .check-text {
    color: var(--color-success);
}

/* Results Panel */
.results-panel {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.result-summary {
    margin: 1.5rem 0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius);
}

.result-item.pass {
    background: #f0fdf4;
    color: var(--color-success);
}

.result-item.fail {
    background: #fef2f2;
    color: var(--color-danger);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.info-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.info-section h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
}

.info-section p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

.mistake-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.mistake-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.mistake-list li::before {
    content: "•";
    color: var(--color-danger);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.scenario-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.scenario-box h3 {
    color: #92400e;
    margin-top: 0;
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .checklist-group {
        padding: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .result-actions,
    .hero {
        display: none;
    }
    
    .checklist-section {
        padding: 0;
    }
    
    .check-tip {
        background: none;
        padding: 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;
}
