:root {
  --ink: #17211c;
  --muted: #69736d;
  --soft: #8a948e;
  --line: #dfe5e0;
  --paper: #ffffff;
  --canvas: #f3f6f3;
  --green: #246b4a;
  --green-dark: #174b34;
  --green-soft: #e8f3ed;
  --yellow: #f2b84b;
  --yellow-soft: #fff3d8;
  --coral: #e9785b;
  --blue: #4d74a8;
  --radius: 8px;
  --shadow: 0 16px 48px rgba(26, 54, 39, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 107, 74, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(36, 107, 74, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 24px 24px;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button, input { font: inherit; }
button { color: inherit; }

.app-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid rgba(223, 229, 224, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
}

.brand-mark svg { width: 17px; }

.icon-button,
.modal-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.modal-close:hover { background: var(--canvas); }
.icon-button svg { width: 21px; }
.hidden { display: none !important; }
#backButton.hidden { display: grid !important; visibility: hidden; }

.screen {
  min-height: calc(100vh - 64px);
  padding: 28px 24px 44px;
}

.home-screen { overflow: hidden; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow svg { width: 16px; }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 16px;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.2;
}

h2 { font-size: 24px; line-height: 1.35; }
h3 { font-size: 17px; }

.lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  height: 230px;
  margin: 26px 0 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfece4;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(#246b4a 1px, transparent 1px);
  background-size: 18px 18px;
}

.path-line {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 42px;
  height: 82px;
  border-top: 4px solid rgba(36, 107, 74, 0.45);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.visual-person {
  position: absolute;
  left: 13%;
  bottom: 34px;
  width: 72px;
  height: 112px;
}

.visual-person::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #bd7657;
}

.visual-person::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 58px;
  height: 78px;
  border-radius: 34px 34px 8px 8px;
  background: var(--green-dark);
}

.signpost {
  position: absolute;
  right: 13%;
  bottom: 33px;
  width: 7px;
  height: 126px;
  background: #31523f;
}

.signpost span {
  position: absolute;
  right: -6px;
  width: 112px;
  padding: 8px 12px;
  border-radius: 4px 4px 4px 0;
  color: white;
  font-size: 12px;
  font-weight: 600;
  background: var(--green);
}

.signpost span:nth-child(1) { top: 8px; }
.signpost span:nth-child(2) { top: 52px; width: 94px; background: var(--coral); }
.signpost span:nth-child(3) { top: 96px; width: 104px; background: var(--blue); }

.visual-note {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 138px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 6px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 8px 20px rgba(23, 75, 52, .08);
  font-size: 12px;
  line-height: 1.55;
}

.visual-note strong { display: block; color: var(--green); font-size: 16px; }

.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.benefit {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.benefit svg { width: 21px; color: var(--green); }
.benefit strong { display: block; margin-top: 5px; font-size: 13px; }
.benefit span { color: var(--soft); font-size: 11px; }

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-button {
  border: 1px solid var(--green);
  color: white;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(36, 107, 74, 0.18);
}

.primary-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.secondary-button {
  border: 1px solid var(--green);
  color: var(--green);
  background: white;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

.full-width { width: 100%; }
.privacy-note { margin: 12px 0 0; color: var(--soft); font-size: 12px; text-align: center; }

.step-intro { margin-bottom: 28px; }
.step-intro p { color: var(--muted); line-height: 1.75; }

.goal-grid { display: grid; gap: 10px; }

.choice-card {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr 22px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: white;
  cursor: pointer;
}

.choice-card:hover,
.choice-card.selected { border-color: var(--green); background: var(--green-soft); }
.choice-card .choice-icon { color: var(--green); }
.choice-card .choice-icon svg { width: 22px; }
.choice-card strong { display: block; font-size: 15px; }
.choice-card small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.45; }
.choice-card .check { opacity: 0; color: var(--green); }
.choice-card.selected .check { opacity: 1; }

.screen-actions { display: grid; gap: 10px; margin-top: 24px; }

.form-section { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.form-label small { margin-left: 5px; color: var(--soft); font-weight: 400; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.option-chip {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
  background: white;
  cursor: pointer;
}
.option-chip:hover,
.option-chip.selected { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.option-chip strong { display: block; font-size: 13px; }
.option-chip small { display: block; margin-top: 2px; color: var(--soft); font-size: 10px; }
.text-input,
.select-input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  background: white;
}
.text-input:focus,
.select-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { margin-top: 8px; color: var(--soft); font-size: 11px; line-height: 1.6; }
.method-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 26px; }
.method-step { position: relative; padding: 10px 4px; border-bottom: 3px solid var(--line); color: var(--soft); text-align: center; font-size: 10px; }
.method-step.active { border-color: var(--green); color: var(--green); font-weight: 700; }
.validation-note { display: none; margin-top: 10px; color: #a34b34; font-size: 12px; }
.validation-note.show { display: block; }

.quiz-screen { padding-top: 20px; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 10px; background: #e8ece9; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--green); transition: width .3s ease; }

.strength-found {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  color: #785814;
  background: var(--yellow-soft);
  font-size: 12px;
  font-weight: 600;
}

.strength-found svg { width: 14px; }
.question-wrap { padding-top: 38px; }
.question-index { color: var(--green); font-size: 13px; font-weight: 700; }
.question-wrap h2 { margin: 10px 0 10px; }
.question-hint { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.answer-list { display: grid; gap: 12px; }

.answer-button {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  background: white;
  cursor: pointer;
}

.answer-button:hover { border-color: var(--green); background: #fbfdfc; }
.answer-letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-weight: 700;
}

.analysis-screen { display: grid; place-items: center; text-align: center; }
.analysis-box { width: min(100%, 420px); }
.analysis-orbit {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.analysis-orbit::before,
.analysis-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse 1.8s infinite ease-in-out;
}
.analysis-orbit::before { inset: 18px; }
.analysis-orbit::after { inset: 42px; background: var(--green); animation-delay: .3s; }
@keyframes pulse { 0%,100% { transform: scale(.92); opacity: .55; } 50% { transform: scale(1.05); opacity: 1; } }
.analysis-list { display: grid; gap: 10px; margin-top: 26px; text-align: left; }
.analysis-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.analysis-item.done { color: var(--ink); }
.analysis-item svg { width: 18px; color: var(--green); }

.report-screen { padding: 0 0 56px; background: var(--canvas); }
.report-cover {
  position: relative;
  padding: 34px 24px 30px;
  overflow: hidden;
  color: white;
  background: var(--green-dark);
}
.report-cover::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.report-cover .eyebrow { color: #b9dfca; }
.report-cover h1 { max-width: 560px; margin-bottom: 12px; font-size: 31px; }
.report-cover p { position: relative; z-index: 1; max-width: 580px; margin-bottom: 22px; color: rgba(255,255,255,.78); line-height: 1.75; }
.report-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.report-meta span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; font-size: 11px; }

.report-body { padding: 16px; }
.report-card { margin-bottom: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.section-kicker { color: var(--green); font-size: 12px; font-weight: 700; }
.section-title { margin: 5px 0 8px; font-size: 21px; }
.section-desc { color: var(--muted); font-size: 14px; line-height: 1.75; }

.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 18px; }
.summary-cell { padding: 13px; border-radius: 6px; background: var(--canvas); }
.summary-cell span { display: block; margin-bottom: 5px; color: var(--soft); font-size: 11px; }
.summary-cell strong { font-size: 14px; }

.dimension-list { display: grid; gap: 18px; margin-top: 20px; }
.dimension-head { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }
.dimension-head span:last-child { color: var(--green); font-weight: 700; }
.dimension-track { height: 9px; border-radius: 10px; background: #ecf0ed; }
.dimension-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.holland-chart { display: grid; gap: 10px; margin-top: 20px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 32px; align-items: center; gap: 10px; font-size: 12px; }
.bar-track { height: 14px; border-radius: 3px; background: #edf0ed; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.bar-row:nth-child(2) i { background: var(--blue); }
.bar-row:nth-child(3) i { background: var(--yellow); }
.bar-row:nth-child(n+4) i { background: #aab3ad; }
.bar-score { color: var(--muted); text-align: right; }

.evidence-list,
.asset-list,
.action-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.evidence-list li,
.asset-list li { position: relative; padding: 12px 12px 12px 36px; border-radius: 6px; background: var(--canvas); color: #445049; font-size: 13px; line-height: 1.65; }
.evidence-list li::before,
.asset-list li::before { content: "✓"; position: absolute; left: 13px; top: 12px; color: var(--green); font-weight: 700; }

.asset-tabs { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; }
.asset-tab { padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; background: white; font-size: 12px; cursor: pointer; }
.asset-tab.active { color: white; border-color: var(--green); background: var(--green); }

.career-card { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.career-card:first-of-type { margin-top: 10px; padding-top: 6px; border-top: 0; }
.career-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.career-rank { color: var(--green); font-size: 11px; font-weight: 700; }
.career-title { margin: 4px 0 6px; font-size: 18px; }
.career-match { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border: 5px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; color: var(--green); font-size: 12px; font-weight: 700; }
.career-reason { margin-bottom: 13px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { padding: 5px 8px; border-radius: 3px; color: #506058; background: var(--canvas); font-size: 11px; }
.career-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.career-detail div { padding: 10px; border-left: 3px solid var(--green-soft); background: #fbfcfb; }
.career-detail span { display: block; color: var(--soft); font-size: 10px; }
.career-detail strong { font-size: 12px; }
.path-card { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfb; }
.path-card-caution { border-color: #ecd397; background: #fffdf7; }
.path-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.path-card-head h3 { margin: 5px 0 0; font-size: 18px; }
.path-status { flex: 0 0 auto; padding: 6px 8px; border-radius: 4px; color: var(--green-dark); background: var(--green-soft); font-size: 11px; font-weight: 700; }
.path-card-caution .path-status { color: #775816; background: var(--yellow-soft); }
.path-intent { margin: 13px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.path-evidence { display: grid; gap: 7px; margin: 13px 0; }
.path-evidence > div { display: flex; gap: 8px; align-items: flex-start; color: #4e5d55; font-size: 12px; line-height: 1.55; }
.path-evidence svg { flex: 0 0 15px; width: 15px; margin-top: 2px; color: var(--green); }
.path-detail { display: grid; gap: 8px; }
.path-detail > div { padding: 11px 12px; border-left: 3px solid var(--green-soft); background: white; }
.path-detail strong { display: block; margin-bottom: 3px; font-size: 11px; }
.path-detail p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.path-detail .path-risk { border-left-color: #efd393; background: #fffaf0; }
.path-check { margin-top: 12px; padding: 13px; border: 1px dashed #d7bc78; border-radius: 5px; background: white; }
.path-check h4 { margin: 0 0 5px; color: #775816; font-size: 12px; }
.path-check h4:not(:first-child) { margin-top: 12px; }
.path-check p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.match-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 12px 0 14px; }
.match-factor { padding: 8px 4px; border-radius: 4px; text-align: center; background: var(--canvas); }
.match-factor span { display: block; color: var(--soft); font-size: 9px; }
.match-factor strong { display: block; margin-top: 3px; color: var(--green-dark); font-size: 12px; }
.evidence-box { margin-top: 12px; padding: 11px 12px; border-left: 3px solid var(--green); color: var(--muted); background: #f8faf8; font-size: 12px; line-height: 1.65; }
.gap-box { margin-top: 8px; padding: 10px 12px; border-left: 3px solid var(--yellow); color: #725719; background: #fffaf0; font-size: 12px; line-height: 1.65; }
.method-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 12px; }
.method-table th,
.method-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.method-table th { color: var(--soft); font-weight: 500; }
.profile-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.profile-summary span { padding: 6px 8px; border-radius: 4px; color: #42534a; background: var(--canvas); font-size: 11px; }

.caution-card { border-color: #eed9a8; background: #fffdf7; }
.caution-card .section-kicker { color: #916b19; }

.action-list { counter-reset: action; }
.action-list li { position: relative; padding: 4px 0 12px 42px; min-height: 38px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.action-list li::before { counter-increment: action; content: counter(action); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 700; }

.confidence { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 6px; background: var(--green-soft); }
.confidence-score { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); font-weight: 700; }
.confidence p { margin: 0; color: #476051; font-size: 12px; line-height: 1.6; }

.service-panel { padding: 24px 20px; color: white; background: var(--green-dark); }
.service-panel h2 { margin-bottom: 8px; }
.service-panel > p { color: rgba(255,255,255,.72); line-height: 1.7; }
.service-grid { display: grid; gap: 9px; margin-top: 18px; }
.service-button { width: 100%; display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: white; text-align: left; background: rgba(255,255,255,.08); cursor: pointer; }
.service-button:hover { background: rgba(255,255,255,.13); }
.service-button svg { width: 20px; }
.service-button strong { display: block; font-size: 14px; }
.service-button small { display: block; margin-top: 2px; color: rgba(255,255,255,.62); }
.service-note { margin-top: 14px !important; font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(14, 25, 19, .56); }
.modal { position: relative; width: min(100%, 400px); padding: 28px; border-radius: var(--radius); background: white; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.modal-close { position: absolute; right: 10px; top: 10px; }
.modal-close svg { width: 20px; }
.modal-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.modal-icon svg { width: 23px; }
.modal h2 { margin-bottom: 10px; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.modal .primary-button { margin-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; max-width: calc(100vw - 36px); padding: 11px 16px; border-radius: 6px; color: white; background: var(--ink); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 761px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 10px; overflow: clip; }
  .screen { min-height: calc(100vh - 112px); padding-left: 42px; padding-right: 42px; }
  .report-body { padding: 22px 30px; }
  .report-cover { padding: 42px 38px; }
  .service-panel { margin: 0 30px; border-radius: var(--radius); }
}

@media (max-width: 420px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .benefit strong { font-size: 12px; }
  .career-detail { grid-template-columns: 1fr; }
  .report-cover { padding-left: 20px; padding-right: 20px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
