*{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#faf8f5;--surface:#ffffff;--surface2:#f3efe8;--text:#2c2420;--text-light:#6b5e54;--accent:#8b6f47;--accent-light:#d4b896;--accent-dark:#6b5430;--green:#4a7c59;--green-light:#e8f0ea;--red:#b54a4a;--red-light:#f5e8e8;--orange:#c4813a;--orange-light:#faf0e4;--border:#e0d8cc;--radius:10px;--shadow:0 2px 12px rgba(44,36,32,.08);--font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.65}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
img{max-width:100%;height:auto}

/* Header */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);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(--text);font-weight:700;font-size:1.1rem}
.logo svg{color:var(--accent)}
.main-nav{display:flex;gap:24px}
.main-nav a{text-decoration:none;color:var(--text-light);font-size:.9rem;font-weight:500;transition:color .15s}
.main-nav a:hover{color:var(--accent)}
.mobile-nav-toggle{display:none;background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--text)}

/* Hero */
.hero{background:linear-gradient(135deg,#f3efe8 0%,#e8dfd2 100%);padding:60px 0 48px;text-align:center}
.hero h1{font-size:2.4rem;font-weight:800;margin-bottom:12px;color:var(--text);letter-spacing:-.02em}
.hero-sub{font-size:1.1rem;color:var(--text-light);max-width:560px;margin:0 auto}

/* Assessment */
.assessment{padding:48px 0}
.assess-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
.assess-form{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.assess-form h2{font-size:1.2rem;margin-bottom:20px}
.form-group{margin-bottom:16px}
.form-group label{display:block;font-size:.85rem;font-weight:600;margin-bottom:6px;color:var(--text-light)}
.form-group select,.form-group input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:.95rem;background:var(--surface);color:var(--text);font-family:var(--font);transition:border-color .15s}
.form-group select:focus,.form-group input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(139,111,71,.15)}

/* Results */
.result-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.result-verdict{font-size:1.3rem;font-weight:700;margin-bottom:14px;line-height:1.3}
.result-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:.8rem;font-weight:600}
.badge-diff{background:var(--green-light);color:var(--green)}
.badge-med{background:var(--orange-light);color:var(--orange)}
.badge-hard{background:var(--red-light);color:var(--red)}
.badge-time{background:var(--surface2);color:var(--text-light)}
.badge-diy{background:var(--green-light);color:var(--green)}
.badge-pro{background:var(--orange-light);color:var(--orange)}
.result-desc{color:var(--text-light);margin-bottom:18px;font-size:.95rem}
.cost-comparison{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-bottom:20px}
.cost-col{background:var(--surface2);border-radius:8px;padding:14px;text-align:center}
.cost-label{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-light);margin-bottom:4px}
.cost-val{display:block;font-size:1.2rem;font-weight:700;color:var(--text)}
.result-actions{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;border:1px solid transparent;transition:all .15s;font-family:var(--font);text-decoration:none}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-dark)}
.btn-ghost{background:var(--surface);color:var(--text);border-color:var(--border)}
.btn-ghost:hover{background:var(--surface2)}
.btn-small{padding:6px 12px;font-size:.8rem}

/* Steps */
.steps-section{padding:48px 0;background:var(--surface)}
.steps-section h2{margin-bottom:24px;font-size:1.4rem}
.steps-list{list-style:none;counter-reset:step}
.steps-list li{counter-increment:step;padding:16px 16px 16px 56px;position:relative;border-bottom:1px solid var(--border)}
.steps-list li:last-child{border-bottom:none}
.steps-list li::before{content:counter(step);position:absolute;left:16px;top:16px;width:28px;height:28px;background:var(--accent);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700}
.step-empty{color:var(--text-light);font-style:italic;padding-left:16px}
.step-empty::before{display:none}

/* History */
.history-section{padding:48px 0}
.history-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.history-header h2{font-size:1.2rem}
.history-list{display:grid;gap:10px}
.history-empty{color:var(--text-light);font-style:italic}
.history-item{display:flex;align-items:center;justify-content:space-between;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px 16px}
.history-item-info{display:flex;flex-direction:column}
.history-item-title{font-weight:600;font-size:.95rem}
.history-item-meta{font-size:.8rem;color:var(--text-light)}
.history-item-cost{font-weight:700;color:var(--green);font-size:.9rem}

/* Cost Guide */
.cost-guide{padding:48px 0;background:var(--surface)}
.cost-guide h2{margin-bottom:8px;font-size:1.4rem}
.section-intro{color:var(--text-light);margin-bottom:24px;max-width:680px}
.table-wrap{overflow-x:auto}
.cost-table{width:100%;border-collapse:collapse;font-size:.9rem}
.cost-table th{background:var(--surface2);padding:12px 16px;text-align:left;font-weight:600;border-bottom:2px solid var(--border);white-space:nowrap}
.cost-table td{padding:10px 16px;border-bottom:1px solid var(--border)}
.cost-table tr:hover td{background:var(--surface2)}

/* Skills */
.skills-section{padding:48px 0}
.skills-section h2{margin-bottom:8px;font-size:1.4rem}
.skill-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:24px}
.skill-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}
.skill-num{width:36px;height:36px;background:var(--accent);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;margin-bottom:14px}
.skill-card h3{font-size:1.1rem;margin-bottom:12px}
.skill-card ul{list-style:none;margin-bottom:14px}
.skill-card li{padding:4px 0;font-size:.9rem;color:var(--text-light);padding-left:18px;position:relative}
.skill-card li::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:700}
.skill-time{font-size:.8rem;color:var(--text-light);font-style:italic}

/* Mistakes */
.mistakes-section{padding:48px 0;background:var(--surface)}
.mistakes-section h2{margin-bottom:24px;font-size:1.4rem}
.mistakes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.mistake-card{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.mistake-card h3{font-size:1rem;margin-bottom:8px;color:var(--red)}
.mistake-card p{font-size:.9rem;color:var(--text-light)}

/* When Pro */
.when-pro{padding:48px 0}
.when-pro h2{margin-bottom:24px;font-size:1.4rem}
.pro-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.pro-card{border-radius:var(--radius);padding:24px}
.pro-yes{background:var(--green-light);border:1px solid #c8ddc8}
.pro-no{background:var(--surface2);border:1px solid var(--border)}
.pro-card h3{margin-bottom:14px;font-size:1.1rem}
.pro-card ul{list-style:none}
.pro-card li{padding:5px 0;font-size:.9rem;padding-left:20px;position:relative}
.pro-yes li::before{content:"→";position:absolute;left:0;color:var(--green);font-weight:700}
.pro-no li::before{content:"✕";position:absolute;left:0;color:var(--text-light);font-weight:700}

/* FAQ */
.faq-section{padding:48px 0;background:var(--surface)}
.faq-section h2{margin-bottom:24px;font-size:1.4rem}
details{border:1px solid var(--border);border-radius:8px;margin-bottom:10px;background:var(--bg);overflow:hidden}
details summary{padding:14px 18px;cursor:pointer;font-weight:600;font-size:.95rem;list-style:none;display:flex;align-items:center;justify-content:space-between}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+";font-size:1.2rem;color:var(--accent);transition:transform .2s}
details[open] summary::after{content:"−"}
details p{padding:0 18px 16px;font-size:.9rem;color:var(--text-light);line-height:1.6}

/* Footer */
.site-footer{background:var(--text);color:#d4ccc4;padding:48px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;margin-bottom:32px}
.footer-grid strong{color:#fff;display:block;margin-bottom:10px;font-size:.95rem}
.footer-grid p{font-size:.85rem;line-height:1.6}
.footer-grid a{display:block;color:#d4ccc4;text-decoration:none;font-size:.85rem;padding:3px 0;transition:color .15s}
.footer-grid a:hover{color:#fff}
.footer-note{font-size:.8rem;color:#8a8078;border-top:1px solid #4a4038;padding-top:20px}

/* Toast */
.toast{position:fixed;bottom:24px;right:24px;background:var(--text);color:#fff;padding:12px 20px;border-radius:8px;font-size:.9rem;box-shadow:0 4px 20px rgba(0,0,0,.2);z-index:1000;animation:fadeIn .3s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* Responsive */
@media(max-width:860px){
  .assess-grid{grid-template-columns:1fr}
  .skill-levels{grid-template-columns:1fr}
  .mistakes-grid{grid-template-columns:1fr 1fr}
  .pro-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;gap:20px}
  .cost-comparison{grid-template-columns:1fr}
}
@media(max-width:640px){
  .main-nav{display:none;position:absolute;top:56px;left:0;right:0;background:var(--surface);flex-direction:column;padding:16px 20px;border-bottom:1px solid var(--border);gap:12px}
  .main-nav.open{display:flex}
  .mobile-nav-toggle{display:block}
  .hero h1{font-size:1.8rem}
  .hero{padding:40px 0 32px}
  .mistakes-grid{grid-template-columns:1fr}
  .cost-table{font-size:.8rem}
  .cost-table th,.cost-table td{padding:8px 10px}
}
@media print{
  .site-header,.site-footer,.result-actions,.history-section,.mobile-nav-toggle{display:none}
  body{background:#fff}
  .result-card,.assess-form{box-shadow:none;border:1px solid #ccc}
}



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