.tool-header {
  padding: 80px 0 130px;
  background: var(--color-pool-500);
  position: relative;
  overflow: visible;
}

.tool-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C360,0 720,30 1080,10 C1260,5 1380,15 1440,8 L1440,70 L0,70 Z' fill='%237DB5F6' opacity='0.5'/%3E%3Cpath d='M0,35 C360,55 720,15 1080,35 C1260,45 1380,50 1440,35 L1440,70 L0,70 Z' fill='%23D6E9FF'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}

.tool-header .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1050px;
}

.tool-header-icon-wrap { flex-shrink: 0; position: relative; }
.tool-header-icon-wrap::before {
  content: '';
  position: absolute;
  inset: 5%;
  background: #fff;
  border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%;
  transform: rotate(8deg);
}
.tool-header-icon { width: 390px; height: 390px; object-fit: contain; position: relative; z-index: 1; transform: rotate(8deg); }
.tool-header-text { flex: 1; max-width: 560px; }
.tool-header h1 { color: #fff; margin-bottom: 16px; }
.tool-header p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin: 0; }
.tool-header-buttons { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tool-btn-primary,
.tool-btn-secondary { display: inline-block; padding: 12px 28px; font-weight: 600; border-radius: 50px; text-decoration: none; transition: all .2s ease; }
.tool-btn-primary { background: #fff; color: var(--color-pool-700); border: 2px solid #fff; }
.tool-btn-primary:hover { background: var(--color-pool-100); }
.tool-btn-secondary { color: #fff; border: 2px solid rgba(255,255,255,.65); }
.tool-btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.tool-toc { max-width: 840px; margin: 32px auto 0; padding: 0 24px; }
.tool-toc nav { background: #fff; border: 2px solid var(--color-slate-200); border-radius: 12px; padding: 18px 22px; }
.tool-toc-title { display: block; font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-pool-700); margin-bottom: 10px; }
.tool-toc-list { display: flex; flex-wrap: wrap; gap: 10px 16px; list-style: none; padding: 0; margin: 0; }
.tool-toc-list a { color: var(--color-slate-700); font-weight: 600; font-size: .92rem; text-decoration: none; }
.tool-toc-list a:hover { color: var(--color-pool-700); }

.wizard-tool { padding: 48px 16px 24px; scroll-margin-top: 80px; }
.wizard-container { max-width: 820px; margin: 0 auto; padding: 40px 32px; background: #fff; border: 2px solid var(--color-slate-200); border-radius: 16px; }
.wizard-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .875rem; color: var(--color-slate-500); }
.wizard-breadcrumb:not(:empty) { margin-bottom: 32px; }
.wizard-breadcrumb .crumb { color: var(--color-pool-600); font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.wizard-breadcrumb .crumb-current { color: var(--color-slate-600); font-weight: 500; }
.wizard-breadcrumb .crumb-sep { color: var(--color-slate-400); }
.wizard-step { display: none; animation: step-fade-in .25s ease forwards; }
.wizard-step.active { display: block; }
@keyframes step-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-heading { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-pool-700); margin: 0 0 8px; }
.step-sub { color: var(--color-slate-600); font-size: .95rem; margin: 0 0 28px; }
.role-toggle-wrapper { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.role-toggle-label { font-size: .875rem; font-weight: 600; color: var(--color-slate-600); }
.role-toggle { display: flex; background: var(--color-slate-100); border-radius: 999px; padding: 3px; gap: 2px; }
.role-toggle button { padding: 6px 18px; border: 0; border-radius: 999px; font: 600 .875rem var(--font-body); cursor: pointer; background: transparent; color: var(--color-slate-600); }
.role-toggle button.active { background: var(--color-pool-500); color: #fff; box-shadow: 0 2px 6px rgba(31,122,224,.3); }
.symptom-list { display: flex; flex-direction: column; gap: 10px; }
.symptom-item { width: 100%; background: #fff; border: 2px solid var(--color-slate-200); border-radius: 10px; padding: 16px 20px; cursor: pointer; display: flex; align-items: center; gap: 16px; text-align: left; transition: border-color .18s ease, box-shadow .18s ease; }
.symptom-item:hover { border-color: var(--color-pool-400); box-shadow: 0 2px 10px rgba(31,122,224,.1); }
.symptom-text { flex: 1; }
.symptom-title { font-weight: 700; color: var(--color-ink); font-size: .95rem; margin: 0 0 2px; }
.symptom-desc { font-size: .825rem; color: var(--color-slate-500); margin: 0; }
.symptom-arrow { color: var(--color-pool-400); flex-shrink: 0; }
.diagnostic-panel { display: flex; flex-direction: column; gap: 20px; }
.diagnostic-symptom-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-pool-700); margin: 0 0 4px; }
.diagnostic-model-name { font-size: .875rem; color: var(--color-slate-500); margin: 0; }
.disclaimer-box { background: var(--color-slate-50); border-left: 4px solid var(--color-slate-400); border-radius: 6px; padding: 14px 18px; font-size: .8rem; color: var(--color-slate-600); line-height: 1.6; }
.disclaimer-box p { margin: 0; }
.checks-section { background: #fff; border: 2px solid var(--color-slate-200); border-radius: 12px; padding: 24px; }
.checks-section h3 { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-pool-700); margin: 0 0 16px; }
.checks-section.tech-checks { border-color: var(--color-pool-200); background: #f0f7ff; }
.checks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .925rem; color: var(--color-slate-700); line-height: 1.6; }
.step-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--color-pool-100); color: var(--color-pool-700); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.tech-checks .step-num { background: var(--color-pool-200); color: var(--color-pool-800); }
.warning-box,
.danger-box { border-radius: 10px; padding: 16px 20px; display: flex; gap: 14px; align-items: flex-start; font-size: .875rem; line-height: 1.6; }
.warning-box { background: #fff7ed; border: 2px solid #f97316; color: #7c2d12; }
.danger-box { background: #fff1f2; border: 2px solid #ef4444; color: #7f1d1d; font-weight: 500; }
.warn-icon { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.guide-link-btn { display: inline-flex; align-items: center; padding: 14px 28px; background: var(--color-pool-500); color: #fff; border-radius: 8px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 12px rgba(31,122,224,.3); }
.btn-secondary { display: inline-flex; align-items: center; padding: 10px 20px; background: transparent; color: var(--color-slate-600); border: 2px solid var(--color-slate-300); border-radius: 8px; font-weight: 600; cursor: pointer; }
.diagnostic-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tech-checks.hidden { display: none; }

.content-section { max-width: 840px; margin: 0 auto; padding: 48px 24px; }
.content-section h2 { font-size: 1.75rem; color: var(--color-pool-700); margin: 24px 0 16px; font-family: var(--font-display); scroll-margin-top: 100px; }
.content-section h3 { font-size: 1.2rem; color: var(--color-pool-600); margin: 28px 0 10px; font-family: var(--font-display); scroll-margin-top: 100px; }
.content-section p,
.content-section li { line-height: 1.8; color: var(--color-slate-700); }
.content-section a { color: var(--color-pool-600); }
.error-code-table { width: 100%; border-collapse: collapse; margin: 20px 0 32px; font-size: .925rem; }
.error-code-table th { background: #f0f7ff; color: var(--color-pool-700); font-family: var(--font-display); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--color-pool-200); }
.error-code-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-slate-200); color: var(--color-slate-700); line-height: 1.5; }
.error-code-table .code-cell { font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.cta-box { background: linear-gradient(135deg, var(--color-pool-500), var(--color-pool-300)); border-radius: 16px; padding: 40px; text-align: center; margin: 48px 0; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { color: rgba(255,255,255,.95); }
.cta-box .cta-button { display: inline-block; padding: 14px 36px; background: #fff; color: var(--color-pool-700); font-weight: 700; border-radius: 100px; text-decoration: none; }

@media (max-width: 1024px) {
  .tool-header { padding: 48px 0 64px; }
  .tool-header .container { flex-direction: column; align-items: center; text-align: left; gap: 0; }
  .tool-header-icon { width: 330px; height: 330px; }
}

@media (max-width: 640px) {
  .wizard-container { padding: 28px 18px; }
  .tool-header-icon { width: 260px; height: 260px; }
  .diagnostic-actions { flex-direction: column; align-items: flex-start; }
  .error-code-table { display: block; overflow-x: auto; font-size: .85rem; }
  .error-code-table th,
  .error-code-table td { padding: 10px 12px; }
}
