*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --green-900:#1B4332;--green-800:#2D6A4F;--green-700:#40916C;--green-600:#52B788;--green-500:#74C69D;--green-300:#95D5B2;--green-100:#D8F3DC;--green-50:#F0FFF4;
  --gray-900:#1A1A2E;--gray-800:#2D2D44;--gray-700:#404060;--gray-600:#5A5A7A;--gray-500:#7878A0;--gray-400:#9898B8;--gray-300:#B8B8D0;--gray-200:#D8D8E8;--gray-100:#F0F0F6;--gray-50:#F8F8FC;
  --red-500:#E63946;--amber-500:#F4A261;--blue-500:#457B9D;
  --radius:12px;--radius-sm:8px;--radius-xs:4px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);--shadow-md:0 4px 12px rgba(0,0,0,.1);--shadow-lg:0 8px 24px rgba(0,0,0,.12);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --transition:0.2s ease;
}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font);color:var(--gray-900);background:var(--gray-50);line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{max-width:100%;height:auto}
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--gray-200);position:sticky;top:0;z-index:100}
.site-header .container{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--gray-900);font-weight:700;font-size:1.1rem}
.logo-accent{color:var(--green-800)}
.site-nav{display:flex;gap:24px}
.site-nav a{text-decoration:none;color:var(--gray-600);font-size:.9rem;font-weight:500;transition:color var(--transition)}
.site-nav a:hover{color:var(--green-800)}

/* Hero */
.hero{background:linear-gradient(135deg,var(--green-900),var(--green-800));color:#fff;padding:64px 0 72px}
.hero h1{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;line-height:1.2;max-width:640px;margin-bottom:16px}
.hero-sub{font-size:1.1rem;opacity:.85;max-width:520px;margin-bottom:32px;line-height:1.5}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 20px;border-radius:var(--radius-sm);font-size:.95rem;font-weight:600;text-decoration:none;cursor:pointer;border:2px solid transparent;transition:all var(--transition);font-family:var(--font)}
.btn-primary{background:var(--green-600);color:#fff;border-color:var(--green-600)}
.btn-primary:hover{background:var(--green-700);border-color:var(--green-700)}
.btn-secondary{background:#fff;color:var(--gray-800);border-color:var(--gray-300)}
.btn-secondary:hover{border-color:var(--green-600);color:var(--green-800)}
.btn-ghost{background:transparent;color:var(--gray-500);border-color:transparent;font-weight:500}
.btn-ghost:hover{color:var(--red-500)}
.btn-lg{padding:14px 28px;font-size:1.05rem}

/* Cards */
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:24px;margin-bottom:20px}
.card h2{font-size:1.2rem;margin-bottom:4px}
.card h3{font-size:1.05rem;margin-bottom:4px}
.card-note{font-size:.85rem;color:var(--gray-500);margin-bottom:16px}

/* Fields */
.field{margin-bottom:16px}
.field label{display:block;font-size:.85rem;font-weight:600;color:var(--gray-700);margin-bottom:4px}
.field input[type=text],.field input[type=date]{width:100%;padding:10px 14px;border:1px solid var(--gray-300);border-radius:var(--radius-sm);font-size:.95rem;font-family:var(--font);transition:border-color var(--transition);background:#fff}
.field input:focus{outline:none;border-color:var(--green-600);box-shadow:0 0 0 3px rgba(82,183,136,.2)}

/* Checker layout */
.checker-section{padding:40px 0}
.checker-layout{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start}
.checker-sidebar{position:relative}
.sticky{position:sticky;top:72px}

/* Weights */
.weight-row{display:flex;align-items:center;gap:16px;padding:10px 0;border-bottom:1px solid var(--gray-100)}
.weight-row:last-child{border-bottom:none}
.weight-label{font-size:.9rem;font-weight:600;min-width:140px}
.weight-slider{flex:1;-webkit-appearance:none;appearance:none;height:6px;background:var(--gray-200);border-radius:3px;outline:none}
.weight-slider::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--green-600);cursor:pointer}
.weight-slider::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--green-600);cursor:pointer;border:none}
.weight-value{font-size:.85rem;font-weight:700;color:var(--green-800);min-width:32px;text-align:right}

/* Checklist */
.category-group{margin-bottom:24px}
.category-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.category-header h3{font-size:1rem;color:var(--gray-800)}
.category-count{font-size:.8rem;color:var(--gray-500);background:var(--gray-100);padding:2px 8px;border-radius:10px}
.checklist-items{display:grid;gap:2px}
.check-item{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border-radius:var(--radius-xs);transition:background var(--transition);cursor:pointer}
.check-item:hover{background:var(--green-50)}
.check-item input[type=checkbox]{width:18px;height:18px;accent-color:var(--green-700);margin-top:2px;flex-shrink:0;cursor:pointer}
.check-item label{font-size:.9rem;line-height:1.4;cursor:pointer;flex:1}
.check-item .item-points{font-size:.75rem;font-weight:700;color:var(--green-700);background:var(--green-100);padding:1px 6px;border-radius:4px;flex-shrink:0;margin-top:2px}
.check-item.checked{background:var(--green-50)}

/* Score display */
.score-display{display:flex;align-items:baseline;gap:4px;margin:12px 0 8px}
.score-number{font-size:3rem;font-weight:800;color:var(--green-800);line-height:1}
.score-denominator{font-size:1.2rem;color:var(--gray-400);font-weight:600}
.score-band{font-size:.9rem;font-weight:600;padding:6px 12px;border-radius:var(--radius-sm);text-align:center;margin-bottom:16px}
.score-band.low{background:#FFF3F3;color:var(--red-500)}
.score-band.mid{background:#FFF8F0;color:var(--amber-500)}
.score-band.high{background:var(--green-50);color:var(--green-800)}
.score-band.start{background:var(--gray-100);color:var(--gray-500)}
.score-breakdown{margin-bottom:16px}
.breakdown-row{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:.85rem;border-bottom:1px solid var(--gray-100)}
.breakdown-row:last-child{border-bottom:none}
.breakdown-label{color:var(--gray-600)}
.breakdown-val{font-weight:700;color:var(--gray-800)}
.score-actions{display:flex;flex-direction:column;gap:8px}
.score-saved{font-size:.8rem;color:var(--green-700);margin-top:8px;min-height:20px}

/* Comparison */
.comparison-section{padding:40px 0;background:var(--gray-100)}
.comparison-section h2{font-size:1.5rem;margin-bottom:4px}
.section-note{color:var(--gray-500);margin-bottom:24px;font-size:.95rem}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:32px}
.comparison-card{text-align:center}
.comparison-card .field{text-align:left;margin:12px 0}
.comparison-score{font-size:2.4rem;font-weight:800;color:var(--green-800);margin:8px 0}
.comparison-bar{height:8px;background:var(--gray-200);border-radius:4px;overflow:hidden;margin:8px 0 16px}
.comparison-bar-fill{height:100%;background:var(--green-600);border-radius:4px;transition:width .4s ease;width:0%}
.comparison-items{text-align:left;font-size:.85rem;color:var(--gray-600)}
.comparison-quick .check-item{grid-template-columns:1fr auto 1fr}
.comp-check{display:flex;gap:8px;justify-content:center;align-items:center}
.comp-check input[type=checkbox]{width:16px;height:16px;accent-color:var(--green-700)}
.comp-vs{font-size:.75rem;color:var(--gray-400);font-weight:600}

/* Guide */
.guide-section{padding:48px 0}
.guide-section h2{font-size:1.5rem;margin-bottom:24px}
.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:32px}
.guide-block{background:#fff;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}
.guide-block h3{font-size:1rem;margin-bottom:8px;color:var(--green-800)}
.guide-block p{font-size:.9rem;color:var(--gray-600);line-height:1.5}
.guide-why,.guide-mistakes,.guide-faq{background:#fff;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm);margin-bottom:20px}
.guide-why h3,.guide-mistakes h3,.guide-faq h3{font-size:1.1rem;margin-bottom:12px}
.guide-why p{font-size:.95rem;color:var(--gray-700);line-height:1.6}
.guide-mistakes ul{list-style:none;padding:0}
.guide-mistakes li{padding:8px 0;font-size:.9rem;color:var(--gray-700);border-bottom:1px solid var(--gray-100);line-height:1.5}
.guide-mistakes li:last-child{border-bottom:none}
.guide-mistakes strong{color:var(--gray-800)}
.guide-faq details{border-bottom:1px solid var(--gray-100);padding:12px 0}
.guide-faq details:last-child{border-bottom:none}
.guide-faq summary{font-weight:600;font-size:.95rem;cursor:pointer;color:var(--gray-800)}
.guide-faq summary:hover{color:var(--green-800)}
.guide-faq details p{font-size:.9rem;color:var(--gray-600);margin-top:8px;line-height:1.5}

/* Footer */
.site-footer{background:var(--gray-900);color:var(--gray-400);padding:40px 0 24px;margin-top:40px}
.footer-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;flex-wrap:wrap;gap:20px}
.footer-brand .logo-text{color:#fff;font-size:1.1rem;font-weight:700}
.footer-brand p{font-size:.85rem;margin-top:4px}
.footer-links{display:flex;gap:20px;flex-wrap:wrap}
.footer-links a{color:var(--gray-400);text-decoration:none;font-size:.85rem;transition:color var(--transition)}
.footer-links a:hover{color:#fff}
.footer-bottom{border-top:1px solid var(--gray-800);padding-top:16px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.8rem}
.footer-bottom a{color:var(--green-500);text-decoration:none}
.footer-bottom a:hover{text-decoration:underline}

/* Print */
@media print{
  .site-header,.site-footer,.score-actions,.btn,.checker-sidebar .sticky .score-actions,.comparison-section,.guide-section,.site-nav{display:none!important}
  .checker-layout{display:block}
  .card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}
  body{background:#fff}
  .score-band{border:1px solid #ddd}
}

/* Responsive */
@media(max-width:900px){
  .checker-layout{grid-template-columns:1fr}
  .checker-sidebar{position:static}
  .sticky{position:static}
  .guide-grid{grid-template-columns:1fr}
  .comparison-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .hero{padding:40px 0 48px}
  .site-nav{gap:14px}
  .site-nav a{font-size:.8rem}
  .footer-bottom{flex-direction:column;gap:4px}
  .weight-row{flex-wrap:wrap}
  .weight-label{min-width:100%;margin-bottom:4px}
}

/* Focus styles */
:focus-visible{outline:2px solid var(--green-600);outline-offset:2px;border-radius:2px}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}



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