:root{
  --bg:#f3f7fc;
  --card:#ffffff;
  --line:#d9e4f1;
  --text:#1f2937;
  --muted:#64748b;
  --primary:#0b5ea8;
  --primary-dark:#09497f;
  --accent:#d6a11c;
  --soft:#eef5fc;
  --green:#147d45;
  --orange:#b46a00;
  --red:#b42318;
  --shadow:0 10px 26px rgba(9,73,127,.08);
  --radius:18px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:linear-gradient(180deg,#f8fbff 0%, #eef5fc 100%);
  color:var(--text);
  font-family:Arial, Helvetica, sans-serif;
}

.container{
  width:min(1180px, 92%);
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark{
  width:52px;
  height:52px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  box-shadow:var(--shadow);
  overflow:hidden;
  border:2px solid #ffffff;
  flex-shrink:0;
}

.brand-logo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.brand-title{
  font-size:1.1rem;
  font-weight:700;
  color:var(--primary-dark);
}

.brand-subtitle{
  font-size:.85rem;
  color:var(--muted);
}

.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav-btn{
  border:none;
  background:transparent;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  color:var(--text);
}

.nav-btn:hover,
.nav-btn.active{
  background:var(--soft);
  color:var(--primary-dark);
}

.page{
  display:none;
  padding:30px 0 42px;
}

.page.active{
  display:block;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:22px;
  padding:28px;
  margin-bottom:22px;
}

.eyebrow{
  display:inline-block;
  background:#eaf3ff;
  color:var(--primary-dark);
  padding:8px 12px;
  border-radius:999px;
  font-size:.86rem;
  font-weight:700;
  margin-bottom:12px;
}

.hero h1{
  font-size:clamp(2rem,3vw,3rem);
  line-height:1.08;
  margin:0 0 12px;
  color:#0e3054;
}

.lead{
  color:#4b6075;
  line-height:1.7;
  font-size:1.02rem;
}

.hero-actions,
.row.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero-actions{
  margin-top:18px;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.hero-tags span,
.tag-row span{
  background:var(--soft);
  color:#264868;
  border:1px solid #d5e3f0;
  border-radius:999px;
  padding:8px 12px;
  font-size:.9rem;
  font-weight:700;
}

.hero-right{
  display:grid;
  gap:14px;
}

.mini-card{
  background:#f9fbff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}

.mini-card h3{
  margin:0 0 8px;
  color:var(--primary-dark);
}

.mini-card p{
  margin:0;
  color:#52677a;
  line-height:1.6;
}

.grid{
  display:grid;
  gap:18px;
  margin-bottom:20px;
}

.grid.three{
  grid-template-columns:repeat(3,1fr);
}

.grid.two{
  grid-template-columns:repeat(2,1fr);
}

.feature-card,
.info-card,
.result-box,
.chart-card,
.form-card,
.test-card{
  padding:22px;
}

.page-head{
  margin-bottom:16px;
}

.page-head h2{
  margin:0 0 8px;
  color:#0e3054;
}

.page-head p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

label{
  font-weight:700;
  color:#24384c;
}

input,
select,
textarea{
  width:100%;
  border:1px solid #cad7e6;
  border-radius:12px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
  color:var(--text);
}

textarea{
  min-height:110px;
  resize:vertical;
}

.info-box{
  margin-top:18px;
  margin-bottom:18px;
  background:#f8fbff;
  border:1px solid var(--line);
  border-left:4px solid var(--primary);
  border-radius:14px;
  padding:16px;
  color:#42576b;
}

.info-box ul{
  margin:10px 0 0 18px;
  padding:0;
}

.assessment-steps{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}

.step-box{
  text-align:center;
  padding:12px;
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:14px;
  font-weight:700;
  color:#2a4867;
}

.assessment-header{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:16px;
}

.assessment-header h3{
  margin:0 0 6px;
}

.assessment-header p{
  margin:0;
  color:var(--muted);
}

.step-indicator span{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:#edf4ff;
  color:var(--primary-dark);
  font-weight:700;
}

.progress-wrap{
  margin-bottom:18px;
}

.progress{
  height:12px;
  background:#e8eff7;
  border-radius:999px;
  overflow:hidden;
}

.progress-bar{
  width:0;
  height:100%;
  background:linear-gradient(90deg,var(--accent),var(--primary));
  transition:width .2s ease;
}

.progress-text{
  margin-top:8px;
  color:var(--muted);
  font-size:.92rem;
}

.question-block{
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  background:#fbfdff;
}

.question-label{
  display:inline-block;
  margin-bottom:8px;
  font-size:.85rem;
  font-weight:700;
  color:var(--primary-dark);
}

.question-text{
  font-size:1.1rem;
  font-weight:700;
  line-height:1.5;
  margin-bottom:14px;
}

.option-list{
  display:grid;
  gap:10px;
}

.option{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  cursor:pointer;
  background:#fff;
}

.option:hover{
  background:#f7fbff;
}

.option input{
  width:auto;
  margin:0;
}

.btn{
  border:none;
  border-radius:12px;
  padding:13px 18px;
  cursor:pointer;
  font-weight:700;
  font-size:.95rem;
  transition:transform .15s ease, box-shadow .15s ease;
}

.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
}

.btn.secondary{
  background:#fff;
  color:var(--primary-dark);
  border:1px solid var(--line);
}

.btn:hover{
  transform:translateY(-1px);
}

.hidden{
  display:none !important;
}

.chart-card canvas{
  width:100%;
  max-width:100%;
  background:#fff;
  border-radius:12px;
}

.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.result-box p{
  line-height:1.7;
  color:#44576a;
}

.report{
  padding:26px;
}

.report-top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding-bottom:18px;
  border-bottom:2px solid var(--line);
  margin-bottom:20px;
}

.report-top h1{
  margin:0 0 8px;
  font-size:2rem;
  color:#0d3052;
}

.report-meta{
  min-width:260px;
  display:grid;
  gap:6px;
  color:#4d6276;
  font-size:.95rem;
}

.report-section{
  margin-bottom:22px;
}

.report-section h2{
  margin:0 0 12px;
  color:#0d3052;
  font-size:1.25rem;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
}

.report-section p{
  line-height:1.7;
  color:#42576a;
}

.soft-box{
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  color:#42576a;
  line-height:1.7;
}

.note-box{
  min-height:110px;
  border:1px dashed #bfd0e1;
  border-radius:14px;
  background:#fafcff;
  padding:14px;
  color:var(--muted);
}

.path-diagram{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.path-step{
  background:#f7fbff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  text-align:center;
  color:#274868;
  font-weight:700;
  position:relative;
}

.path-step:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-10px;
  top:50%;
  transform:translateY(-50%);
  color:var(--primary);
  font-size:1.2rem;
  font-weight:700;
}

.data-table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:16px;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th,
td{
  border-bottom:1px solid var(--line);
  padding:12px;
  text-align:left;
  vertical-align:top;
  font-size:.95rem;
}

th{
  background:#f7fbff;
  color:#22415f;
}

.status{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
}

.status.high{
  background:#e7f6ec;
  color:var(--green);
}

.status.avg{
  background:#fff5e8;
  color:var(--orange);
}

.status.low{
  background:#fdecec;
  color:var(--red);
}

.muted{
  color:var(--muted);
}

.info-toggle-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
  margin-bottom:14px;
}

.info-toggle-btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--primary-dark);
  border-radius:12px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}

.info-toggle-btn:hover,
.info-toggle-btn.active{
  background:var(--soft);
}

.info-panel{
  display:none;
  background:#f8fbff;
  border:1px solid var(--line);
  border-left:4px solid var(--primary);
  border-radius:14px;
  padding:16px;
  margin-top:10px;
  color:#42576a;
  line-height:1.7;
}

.info-panel.active{
  display:block;
}

.info-panel h3{
  margin-top:0;
  margin-bottom:10px;
  color:#0d3052;
}

.info-panel ul{
  margin:10px 0 0 18px;
}

.subject-match-box{
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  line-height:1.7;
  color:#42576a;
}

a.btn{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.soft-box a{
  color:var(--primary-dark);
  font-weight:700;
  text-decoration:none;
}

.soft-box a:hover{
  text-decoration:underline;
}

.site-footer{
  margin-top:30px;
  padding:24px 0 36px;
  border-top:1px solid var(--line);
  background:#fff;
}

.footer-brand{
  color:var(--muted);
  line-height:1.7;
}

.top3-list{
  display:grid;
  gap:14px;
  margin-top:12px;
}

.top3-item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#f8fbff;
}

.top3-item h4{
  margin:0 0 8px;
  color:#0d3052;
}

.top3-item p{
  margin:0 0 8px;
  line-height:1.65;
  color:#42576a;
}

.top3-rank{
  display:inline-block;
  margin-bottom:8px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--soft);
  color:var(--primary-dark);
  font-size:.85rem;
  font-weight:700;
}

.floating-support{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:999;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  text-decoration:none;
  padding:14px 18px;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  font-weight:700;
  font-size:.92rem;
  max-width:280px;
  text-align:center;
  white-space:normal;
  line-height:1.4;
}

.floating-support:hover{
  transform:translateY(-1px);
}

@media (max-width:980px){
  .hero,
  .grid.three,
  .grid.two,
  .assessment-steps,
  .path-diagram{
    grid-template-columns:1fr;
  }

  .report-top,
  .assessment-header,
  .nav{
    flex-direction:column;
    align-items:flex-start;
  }

  .path-step:not(:last-child)::after{
    content:"↓";
    right:auto;
    left:50%;
    top:auto;
    bottom:-14px;
    transform:translateX(-50%);
  }
}

@media (max-width:700px){
  .floating-support{
    right:12px;
    bottom:12px;
    left:12px;
    max-width:none;
    border-radius:14px;
  }
}

@media print{
  .no-print,
  .site-header,
  .floating-support,
  .site-footer{
    display:none !important;
  }

  body{
    background:#fff;
  }

  .page{
    display:none !important;
    padding:0;
  }

  #reportPage{
    display:block !important;
  }

  #reportWrap{
    display:block !important;
    box-shadow:none;
    border:none;
    padding:0;
  }

  .container{
    width:100%;
  }

  .report-section{
    page-break-inside:avoid;
  }
}